package com.example.design.利用注解加反射消除重复代码.优化.bean;

import com.example.design.利用注解加反射消除重复代码.优化.annotations.BankAPIField;
import com.example.design.利用注解加反射消除重复代码.优化.annotations.BankAPI;
import lombok.Data;


@BankAPI(url = "/bank/createUser", desc = "创建用户接口")
@Data
public class CreateUserAPI extends AbstractAPI {
    @BankAPIField(order = 1, type = "S", length = 10, desc = "名字")
    private String name;

    @BankAPIField(order = 2, type = "S", length = 10, desc = "身份证")
    private String identity;

    @BankAPIField(order = 3, type = "N", length = 11, desc = "年龄")
    private int age;

    @BankAPIField(order = 4, type = "S", length = 10, desc = "手机号")
    private String mobile;
}
